#include "test.h"

double total = 1024.0;
double speed = 1.0;

void DownLoad()
{
    double current = 0;
    printf("开始下载数据，请耐心等待...\n");
    while(current <= total)
    {
        //下载数据
        test2(current,total);
        usleep(10000);
        current += speed;
    }
    printf("\ndownload %.2lfMB done\n",total);
}


int main()
{
    //test1();
    DownLoad();
    return 0;
}
